#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<unistd.h>
#include<fcntl.h>

int main()
{
    close(0);
    int fd = open("myfile", O_RDONLY);
    if(fd < 0 )
    {
        perror("open");
        return 1;
    }
    printf("fd: %d\n",fd);
    close(fd);
    return 0;
}
